package com.l.web.master.system.config;

import org.l.qiao.Cluster;
import org.l.qiao.KeyType;
import org.l.qiao.annotation.Key;
import org.l.qiao.base.LType;

import java.util.Map;

public class Config extends Cluster {

    @Key(keyType = KeyType.MapKey, valueType = LType.LTYPE_STRING, check = "^[\\w\u4e00-\u9fa5]{1,20}$", nullable = false)
    public static final String NAME = "name";

    @Key(keyType = KeyType.MapKey, valueType = LType.LTYPE_STRING, check = "^\\w{1,20}$", nullable = false)
    public static final String KEY = "key";

    @Key(keyType = KeyType.MapKey, valueType = LType.LTYPE_STRING, check = "", nullable = false)
    public static final String DESCRIPT = "descript";

    public static final String OPTION = "option";

    public Config() {
        super();
    }

    public Config(Map<String, Object> map) {
        super(map);
    }

}
